package com.cloudlead.common.persistence;

import com.cloudlead.common.persistence.bean.AssociatedDesc;
import com.mysema.query.sql.RelationalPath;
import com.mysema.query.types.Predicate;

public class AssociatedTable {

	private final RelationalPath<?> entityPath;

	private final Predicate on;

	private AssociatedDesc associatedDesc;

	public AssociatedTable(RelationalPath<?> entityPath, Predicate on) {
		super();
		this.entityPath = entityPath;
		this.on = on;
	}

	public AssociatedTable(RelationalPath<?> entityPath, Predicate on,
			AssociatedDesc associatedDesc) {
		super();
		this.entityPath = entityPath;
		this.on = on;
		this.associatedDesc = associatedDesc;
	}

	public RelationalPath<?> getEntityPath() {
		return entityPath;
	}

	public Predicate getOn() {
		return on;
	}

	public AssociatedDesc getAssociatedDesc() {
		return associatedDesc;
	}

}
